
import javax.swing.filechooser.FileFilter;

public class TextFileFilter  extends FileFilter {
	
	public boolean accept(java.io.File file) {
		 
        if ( file.isDirectory() ) return true;

        return ( file.getName().endsWith(".jpg") );
    }

    public String getDescription() {
        return "Pictures (*.jpg)";
        }
	
}
